import { createRouter, createWebHistory } from 'vue-router'
import Home from '@/views/Home.vue'
import About from '@/views/About.vue'
import Settings from '@/components/Settings.vue'; // 根据实际路径修改

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/about',
    name: 'About',
    component: About
  },
  {
    path: '/settings',
    name: 'Settings',
    component: Settings,
  },
]

// createWebHashHistory
// createWebHistory
const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
